package com.eugene.element;

import com.eugene.enums.EMaturity;
import com.eugene.enums.ETimeUnit;

public class CurveBucket {
	private EMaturity maturity;
	private ETimeUnit timeUnit;
	private int timeUnitNum;
	private int dayNum;
	
//	private static List<CurveBucket> curveBuckets;

	public CurveBucket(){
	}
	
	public CurveBucket(EMaturity mat, int timeUnitNum, ETimeUnit timeUnit){
		this.maturity = mat;
		this.timeUnitNum = timeUnitNum;
		this.timeUnit = timeUnit;
	}
	
	public EMaturity getMaturity() {
		return maturity;
	}
	public void setMaturity(EMaturity maturity) {
		this.maturity = maturity;
	}

	public ETimeUnit getTimeUnit() {
		return timeUnit;
	}

	public void setTimeUnit(ETimeUnit timeUnit) {
		this.timeUnit = timeUnit;
	}

	public int getTimeUnitNum() {
		return timeUnitNum;
	}

	public void setTimeUnitNum(int timeUnitNum) {
		this.timeUnitNum = timeUnitNum;
	}
	public int getDayNum() {
		return dayNum;
	}

	public void setDayNum(int dayNum) {
		this.dayNum = dayNum;
	}

//	public EMaturity getEMaturity(){
//		for(EMaturity mat: EMaturity.values()){
//			if( mat.Type==this.getTimeUnit().type 
//					&& mat.num == this.getTimeUnitNum()){
//				return mat;
//			}
//		}
//		return EMaturity.MATURITY;
//	}
	
}
